package com.cy.store.service;

import com.cy.store.vo.CartVo;

import java.util.List;

/**购物车业务层接口*/
public interface ICartService {
    /**
     * 将商品添加至购物车
     * @param uid
     * @param pid
     * @param username
     * @param amount 新增数量
     */
    void addToCart(Integer uid,Integer pid,String username,Integer amount);

    List<CartVo> getVoByUid(Integer uid);

    Integer addNum(Integer cid,Integer uid,String username);

    Integer reduceNum(Integer cid,Integer uid,String username);

    List<CartVo> getVoByCids(Integer[] cids,Integer uid);



}
